<template>
	<view v-if="show == true" class="unio2o-sign-result-alert">
		<view  @click="closed()" class="bg"></view>
		<view class="alert-div" :class="show ? 'animated fast zoomInUp':''">
			<view class="alert-main  bg-w bdr16">
				<image @click="closed()" class="closed-img" :src="''"></image>
				<image class="bgimg" :src="''"></image>
				<view class="content pd40">
					<view class="pt20 ft28 ftw600 text-w">
						今日签到成功！
					</view>
					<view class="mt40 ft14 text-w">获得积分奖励</view>
					<view class="flex center mt50">
						<view class="sign-alert-box flex center alcenter text-theme">
							<text class="ft16">积分</text>
							<text class="ft24 ftw600">+1</text>
						</view>
					</view>
					<view @click="closed" class="flex center mt50">
						<view class="sign-alert-btn ft16 ftw600 text-w flex center alcenter">
							知道了
						</view>
					</view>
				</view>
			</view>
		</view>
	
	</view>
</template>

<script>
	export default{
		props:{
			show:{
				type:Boolean,
				default:false
			}
		},
		data(){
			return {
				
			}
		},methods:{
			closed(){
				this.$emit('closed',true);
			}
		}
	}
</script>

<style>
	.sign-alert-btn{
		width:270rpx;
		height:96rpx;
		background:linear-gradient(180deg,rgba(255,139,89,1) 0%,rgba(255,79,78,1) 100%);
		border-radius:48rpx;
	}
	.sign-alert-box{
		width:550rpx;
		height:160rpx;
		background:rgba(255,255,255,1);
		box-shadow:0rpx 8rpx 32rpx 0rpx rgba(0,0,0,0.08);
		border-radius:16rpx;
	}
	.unio2o-sign-result-alert{
		width: 100%;
		height: 100vh;
		z-index: 400;
		position: fixed;
		left: 0;
		top: 0;
		
	}
	.unio2o-sign-result-alert .alert-main .bgimg{
		width: 100%;
		height: 416rpx;
		position: absolute;
		left: 0;
		top: 0;
		z-index: 1;
	}
	.unio2o-sign-result-alert .alert-main .content{
		position: relative;
		z-index: 2;
	}
	.unio2o-sign-result-alert .bg{
		position: fixed;
		width: 100%;
		height: 100vh;
		background: rgba(0,0,0,.3);
		left: 0;
		top: 0;
		z-index: 401;
	}
	
	.unio2o-sign-result-alert .alert-div{
		position: fixed;
		width: 630rpx;
		left: calc(50% - 315rpx);
		top: 50%;
		transform: translateY(-50%);
		z-index: 402;
	}
	.unio2o-sign-result-alert .alert-main{
		position: relative;
		width: 100%;
	}
	
	.unio2o-sign-result-alert .closed-img{
		position: absolute;
		width: 88rpx;
		height: 88rpx;
		right: -44rpx;
		top: -44rpx;
		z-index: 10;
	}
</style>